package net.chat.utils;

/**
 * Utility class to store variables used in common in the classes and pages.
 * @author Prabhat
 */
public final class Util {

    // localhost
    /*
    public final static String HOST_URL = "http://localhost:8080/";
    public final static String WEBAPP_URL = HOST_URL + "nt-cht/";
    public final static String SERVLET_PATH = WEBAPP_URL + "servlet/";
     */
    // anubis
    public final static String HOST_URL = "http://www2.macs.hw.ac.uk:8080/";
    public final static String WEBAPP_URL = HOST_URL + "pt114/nt-cht/";
    public final static String SERVLET_PATH = WEBAPP_URL + "servlet/";
    // SESSION VARIABLES
    public final static String USER_SESS = "user";
    public final static String FORUM_LIST_SESS = "forumsList";
    public final static long MAX_INACTIVE_MIN = 1; // leave forum automatically after 10 mins of inactivity
    public final static int AJAX_LONG_LIVE_TIMEOUT = 1000 * 60 * 5;
}
